-- GENERATED SPELL FOR [Charming Courtesan] --


function spell0_22955(pUnit, Event) --@Infatuation,n/a--
pUnit:FullCastSpellOnTarget(41345,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22955', 20321, 1)
end

function spell1_22955(pUnit, Event) --@Poisonous Throw,n/a--
pUnit:FullCastSpellOnTarget(41346,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22955', 18000, 1)
end

function Sorts_22955(pUnit, Event)
local choix_sorts_22955 = math.random(0, 1)
if choix_sorts_22955 == 0 then
pUnit:RegisterEvent('spell0_22955', 1, 1)
end
if choix_sorts_22955 == 1 then
pUnit:RegisterEvent('spell1_22955', 1, 1)
end
end

function mob22955_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22955', math.random(1500, 3000), 1)
end

function mob22955_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22955_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22955_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22955, 1, 'mob22955_Action')
RegisterUnitEvent(22955, 2, 'mob22955_Leave')
RegisterUnitEvent(22955, 3, 'mob22955_Kill')
RegisterUnitEvent(22955, 4, 'mob22955_Die')
